<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    
</body>
<!-- <script>
    // 数据类型
    let a=10;
    console.log(a)
    console.log(typeof(a))

    let b=0.5;
    console.log(b)
    console.log(typeof(b))
   
    let p=4;
    let q=2;
    let z=6;
    let m;
  
    console.log(q>p? q:p)
    m=(q>p? q:p);
    console.log(z>m? z:m)
</script>
<script>
     let v = parseInt(prompt("请输入一个数字")) 

    if(v%4==0&&v%100!=0)
    {
        console.log("这一年是闰年")
    }else{
        console.log("这一年不是闰年")
    }

</script>
<script>
        let age = parseInt(prompt("请输入年龄")) 
   
       if(age>=18)
       {
           console.log("你成年了")
       }else{
           console.log("小朋友，听妈妈的话 别让她受伤")
       }
   
   </script>
   <script>
       let day=parseInt(prompt("输入1-7"))
       switch(day){
            case 1:
              console.log("星期一")
              break;
            case 2:
           console.log("星期二")
           break;
           case 3:
           console.log("星期三")
           break;
           case 4:
           console.log("星期四")
           break;
           case 5:
           console.log("星期五")
           break;
           case 6:
           console.log("星期六")
           break;
           case 7:
           console.log("星期天")
           break;
           default:
           console.log("你输的是个啥！！")

       }


   </script>
    <script>
            let month=parseInt(prompt("输入月份"))
            switch(month){
                 case 1:case 3:case 5:case 7:case 8:case 10:
                 case 12:
                   console.log("31天哪")
                   break;
                 case 2:
                   console.log("28天")
                break;
                case 4:case 6:case 9:case 11:
                console.log("30天")
                break;
                default:
                console.log("你输的是个啥！！")
                break;
     
            }
     
        </script> -->
        <script>
            let i=1;
            let sum=0;
            while(i*7<100){
                console.log(7*i)
                i++;
                sum+=7*i;

            }
            console.log(sum)

        </script>
</html>